﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Newtonsoft.Json;
using System.Runtime.Serialization;
using System.Collections.Generic;


namespace KOF.Helpers
{
    [DataContract]
    public class ResponseBrand
    {
        [DataMember(EmitDefaultValue = false)]
        public string id { get; set; }
        [DataMember(EmitDefaultValue = false)]
        public string brand_name { get; set; }
        [DataMember(EmitDefaultValue = false)]
        public bool checked1 { get; set; }
        [DataMember (EmitDefaultValue = false)]
        public List<ResponseBrand> subtypes { get; set; }
        [DataMember(EmitDefaultValue = false)]
        public bool showSubItems { get; set; }
        [DataMember(EmitDefaultValue = false)]
        public bool showBrandName { get; set; }
    
    }

    [DataContract]
    public class ServiceResult
    {
        [DataMember]
        public string success { get; set; }
        [DataMember]
        public List<ReleaseResult> data { get; set; }
        [DataMember]
        public int total_events { get; set; }
        [DataMember]
        public List<ResponseBrand> types { get; set; }
    }

    [DataContract]
    public class ReleaseResult
    {
        [DataMember]
        public string id { get; set; }
        [DataMember]
        public string title { get; set; }
        [DataMember]
        public string style { get; set; }
        [DataMember]
        public string thumb_ipad_master_image { get; set; }
        [DataMember]
        public string thumb_iphone_master_image { get; set; }
        [DataMember]
        public string master_ipad_image { get; set; }
        [DataMember]
        public string master_iphone_image { get; set; }
        [DataMember]
        public string master_image { get; set; }
        [DataMember]
        public string description { get; set; }
        [DataMember]
        public string event_date { get; set; }
        [DataMember]
        public string price { get; set; }
        [DataMember]
        public List<ResponseBrand> type { get; set; }
        [DataMember]
        public string kof_link { get; set; }
        [DataMember]
        public string kxf_link { get; set; }
        [DataMember]
        public List<object> images { get; set; }
        [DataMember]
        public List<object> ipad_images { get; set; }
        [DataMember]
        public List<object> iphone_images { get; set; }
        [DataMember]
        public string created_on { get; set; }
        [DataMember]
        public string updated_on { get; set; }
        [DataMember]
        public bool IsDownloading { get; set; }

      //  public Uri ImageSource { get; set; }
    }
}
